<?php

namespace app\admin\validate;

use think\Validate;

class LoginValidate extends Validate
{
	protected $rule = [
	    'username'=>'require|min:5',
        'password'=>'require'
    ];
    protected $message = [
        'username.require'=>'用户名不能为空',
        'username.min'=>'用户名不能小于5个字符',
        'password.require'=>'密码不能为空'
    ];
}
